<!DOCTYPE html>
<html>
<head>
    <title>我的订单</title>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="/js/bootstrap-4.1.1-dist/css/bootstrap.min.css">
    <script src="/js/jquery/jquery.min.js"></script>
    <script src="/js/bootstrap-4.1.1-dist/js/bootstrap.min.js"></script>
    <script src="/js/plugins/jrender/jrender.min.js"></script>
    <link rel="stylesheet" href="/css/sapp.css">
    <link rel="stylesheet" href="/css/font/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="/css/reset.css"/>
    <link rel="stylesheet" href="/css/userTravels.css"/>
    <link rel="stylesheet" href="/js/plugins/dialog2/dialog.css"/>
    <script src="/js/plugins/dialog2/dialog.min.js"></script>
    <script src="/js/common.js"></script>
    <script src="/js/checkLogin.js"></script>
    <script src="/js/queryAndBlank.js"></script>
     <script>
         $(function () {
             $(".info #headImgUrl").attr('src',user.headImgUrl);
             //查询出当前所有已购买的商品
             $.get(baseUrl+'/usergoods/store/'+user.id,function (data) {
                var use=data[data.length-1];
                 $('.info').renderValues(use);
                 $(".smaller").renderValues({list:data},{
                     getCount : function (item, value) {
                         count=value;
                         $(item).html(value);
                     },
                     getIntegral: function (item,value) {
                         //计算每件商品的总价
                         $(item).html(value*count);
                     }
                 });
             })
         })
     </script>

</head>
<body background="/upload/15.jpg"></body>
<body>
<div class="search-head">
    <div class="row nav-search">
        <div class="col">
            <a href="store.html">
                <span><i class="fa fa-chevron-left"></i></span>
            </a>
        </div>
        <div class="col">
            <span>我的订单</span>
        </div>
        <div class="col">
            <a href="store.html"> <i class="fa fa-shopping-bag" aria-hidden="true"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
            <a href="myList.html"><i class="fa fa-cart-arrow-down" aria-hidden="true"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
        </div>
    </div>
</div>


<div class="body">
    <div class="address" id="address2">
        <div class="row info">
            <div class="col-2" >
                <img  class="rounded-circle" id="headImgUrl">
            </div>
        <div class="caizhu">
            收货人：<span class="person" id="span1" render-html="name"></span>&nbsp;&nbsp;&nbsp;&nbsp;
            联系方式:<span class="person" id="span1" render-html="tel"></span><br/>
            地址:<span class="diqiu" id="span1" render-html="place"></span>
        </div>
        </div>
        <!--<a href="Oldindex.html" class="xdz">&gt;</a>-->
    </div>
    <div class="hbt" style="width: 100%;height: 1rem;background-color: #eaeaea"></div>

    <div class="smaller">
        <h6 class="module-title">商品</h6>
        <div render-loop="list">
            <div style="margin-bottom: 20px">
                <!--<a render-fun="getHref" render-key="list.id" data-url="/mine/commodity.html?id=">-->
                <div class="row news-detail">
                    <div class="col-4">
                        <img render-src="list.store.picture" >
                    </div>
                    <div class="col-8">
                    <li class="li4">
                       <em><strong><span render-html="list.store.diseribe"></span></strong></em>&nbsp;&nbsp;&nbsp;
                        <i class="fa fa-close" aria-hidden="true"></i>&nbsp;
                        <span id="input" render-key="list.number" render-fun="getCount"></span>
                        <br/>
                       消费积分:<span class="totalCount" render-key="list.store.price" render-fun="getIntegral"></span>
                        </span><br>
                       寄送方式:<span render-html="list.store.mail"></span>
                        </span><br>
                        留言:<span render-html="list.remarks"></span>
                        </span><br>
                       发货时间:<span render-html="list.buyTime"></span>
                        </span><br>
                       状态:<span render-html="list.stateName" style="background-color: red"></span>
                        </span><br>
                    </li>
                    </div>
                </div>
                <!-- </a>-->
                <hr>
            </div>
        </div>
    </div>

    <div class="wx_nav" id="wx_nav">
        <a href="/index.html" class="nav_index" id="nav_index">首页</a>
        <a href="store.html" class="nav_shopcart" id="nav_shopcart">商城</a>
        <a href="myList.html" class="nav_me on" id="nav_me on">购物车</a>
    </div>
</div>
<div class="theme-popover-mask"></div>

</body>
</html>
